import request from '@/utils/request'

// 查询培训预约记录列表
export function listTrainingReservation(query) {
  return request({
    url: '/training/TrainingReservation/list',
    method: 'get',
    params: query
  })
}

// 查询培训预约记录详细
export function getTrainingReservation(trainingReservationId) {
  return request({
    url: '/training/TrainingReservation/' + trainingReservationId,
    method: 'get'
  })
}

// 新增培训预约记录
export function addTrainingReservation(data) {
  return request({
    url: '/training/TrainingReservation',
    method: 'post',
    data: data
  })
}

// 修改培训预约记录
export function updateTrainingReservation(data) {
  return request({
    url: '/training/TrainingReservation',
    method: 'put',
    data: data
  })
}

// 删除培训预约记录
export function delTrainingReservation(trainingReservationId) {
  return request({
    url: '/training/TrainingReservation/' + trainingReservationId,
    method: 'delete'
  })
}
